// 详情用法请参考：https://www.uviewui.com/js/http.html
const http = uni.$u.http

// post请求，获取菜单
/*export const siteinit = (params, config = {}) => http.post('api/setting.Setting/initsite', params, config) user.js中修改*/
export const api_login = (params, config = {}) => http.post('api/member.Login/login', params, config)
export const api_googlelogin = (params, config = {}) => http.post('api/member.Register/googoelogin', params, config)
export const api_login_minicode = (params, config = {}) => http.post('api/member.Login/mini', params, config)
export const api_register = (params, config = {}) => http.post('api/member.Register/register', params, config)

export const api_getUserinfo = (params, config = {custom:{auth:true}}) => http.post('api/member.Member/info', params, config)
export const api_editUserinfo = (params, config = {custom:{auth:true}}) => http.post('api/member.Member/edit_userlist', params, config)
export const api_sun_nodetree = (params, config = {custom:{auth:true}}) => http.post('api/base.Sunshineline/list_tree', params, config)
export const api_sun_findsalt = (params, config = {custom:{auth:true}}) => http.post('api/base.Sunshineline/find_parentcode', params, config)
export const api_sun_addsunline = (params, config = {custom:{auth:true}}) => http.post('api/base.Sunshineline/add_sunlinenode', params, config)
export const api_team_list = (params, config = {custom:{auth:true}}) => http.post('api/base.Team/list', params, config)
export const api_team_info = (params, config = {custom:{auth:true}}) => http.post('api/base.Team/info', params, config)

export const api_assets_list = (params, config = {custom:{auth:true}}) => http.post('api/assets.Coin/assets', params, config)
export const api_assets_coinflow = (params, config = {custom:{auth:true}}) => http.post('api/assets.Coin/flow', params, config)
export const api_assets_paymentaccount = (params, config = {custom:{auth:true}}) => http.post('api/assets.Coin/default_paymentaccount', params, config)
export const api_user_Actionlog = (params, config = {custom:{auth:true}}) => http.post('api/base.Expand/actionlog', params, config)

export const api_goods_list = (params, config = {custom:{auth:false}}) => http.post('api/mall.Goods/list', params, config)
export const api_goods_item = (params, config = {custom:{auth:false}}) => http.post('api/mall.Goods/info', params, config)
export const api_goods_save = (params, config = {custom:{auth:true}}) => http.post('api/mall.Goods/save', params, config)
export const api_storemanage_shoplist = (params, config = {custom:{auth:true}}) => http.post('api/mall.Storemanage/shoplist', params, config)
export const api_storemanage_save = (params, config = {custom:{auth:true}}) => http.post('api/mall.Storemanage/save', params, config)
export const api_store_run = (params, config = {custom:{auth:true}}) => http.post('api/mall.Storemanage/shoprun', params, config)
export const api_store_staff_list = (params, config = {custom:{auth:true}}) => http.post('api/mall.Storemanage/stafflist', params, config)
export const api_store_staff_add = (params, config = {custom:{auth:true}}) => http.post('api/mall.Storemanage/staffadd', params, config)
export const api_store_staff_del = (params, config = {custom:{auth:true}}) => http.post('api/mall.Storemanage/staffdel', params, config)
export const api_store_staff_authmobi = (params, config = {custom:{auth:true,load:false}}) => http.post('api/mall.Storemanage/staffauthmodi', params, config)
export const api_store_importgoods = (params, config = {custom:{auth:true}}) => http.post('api/mall.Storemanage/import_goods', params, config)
export const api_store_delimportgoods = (params, config = {custom:{auth:true}}) => http.post('api/mall.Storemanage/del_import_goods', params, config)

export const api_order_list = (params, config = {custom:{auth:true}}) => http.post('api/mall.Order/order_list', params, config)
export const api_order_view = (params, config = {custom:{auth:true}}) => http.post('api/mall.Order/order_view', params, config)
export const api_order_save = (params, config = {custom:{auth:true}}) => http.post('api/mall.Order/order_save', params, config)
export const api_order_pay = (params, config = {custom:{auth:true}}) => http.post('api/mall.Order/order_pay', params, config)

export const api_order_kdcode = (params, config = {custom:{auth:true,load:false}}) => http.post('api/mall.Order/get_kuaidicode', params, config)
export const api_order_edit = (params, config = {custom:{auth:true}}) => http.post('api/mall.Order/order_edit', params, config)
export const api_order_log_add = (params, config = {custom:{auth:true}}) => http.post('api/mall.Order/order_log_add', params, config)
export const api_order_del = (params, config = {custom:{auth:true}}) => http.post('api/mall.Order/order_del', params, config)

export const api_user_addresslist = (params, config = {custom:{auth:true}}) => http.post('api/member.Address/list', params, config)
export const api_user_addresssave = (params, config = {custom:{auth:true}}) => http.post('api/member.Address/save', params, config)
export const api_user_addressinfo = (params, config = {custom:{auth:true}}) => http.post('api/member.Address/info', params, config)
export const api_user_addressdel = (params, config = {custom:{auth:true}}) => http.post('api/member.Address/dele', params, config)


export const api_region = (params, config = {custom:{auth:false}}) => http.post('api/member.Address/region', params, config)
export const api_user_region = (params, config = {custom:{auth:true}}) => http.post('api/member.Address/userregion', params, config)
export const api_content_info = (params, config = {custom:{auth:false}}) => http.post('api/content.Content/info', params, config)
export const api_accord_info = (params, config = {custom:{auth:false}}) => http.post('api/setting.Accord/info', params, config)

export const api_info_list = (params, config = {custom:{auth:false}}) => http.post('api/content.Info/list', params, config)
export const api_info_save = (params, config = {custom:{auth:false}}) => http.post('api/content.Info/save', params, config)
export const api_info_view = (params, config = {custom:{auth:false}}) => http.post('api/content.Info/view', params, config)
export const api_info_dele = (params, config = {custom:{auth:false}}) => http.post('api/content.Info/dele', params, config)


export const api_remark_add = (params, config = {custom:{auth:true}}) => http.post('api/setting.Feedback/remark_add', params, config)
export const api_remark_like = (params, config = {custom:{auth:true}}) => http.post('api/setting.Feedback/remark_like', params, config)
export const api_remark_list = (params, config = {custom:{auth:false}}) => http.post('api/setting.Feedback/remark_list', params, config)


export const api_faceback_add = (params, config = {custom:{auth:true}}) => http.post('api/setting.Feedback/feedbackadd', params, config)

export const api_chat_friendlist = (params, config = {custom:{auth:true}}) => http.post('api/base.Chat/get_friendslist', params, config)//聊天队列
export const api_chat_sendmsg = (params, config = {custom:{auth:true}}) => http.post('api/base.Chat/send_msg', params, config)
export const api_chat_listmsg = (params, config = {custom:{auth:true}}) => http.post('api/base.Chat/get_msg_list', params, config)
export const api_chat_create_roomgroup = (params, config = {custom:{auth:true}}) => http.post('api/base.Chat/create_roomgroup', params, config)

export const api_agent_applysale = (params, config = {custom:{auth:true}}) => http.post('agent/Applysale/add', params, config)
export const api_agent_info = (params, config = {custom:{auth:true}}) => http.post('agent/Applysale/info', params, config)
export const api_agentsorder = (params, config = {custom:{auth:true}}) => http.post('agent/Order/list', params, config)
export const api_agent_listrob = (params, config = {custom:{auth:true}}) => http.post('agent/Order/order_listrob', params, config)
export const api_agent_listagent = (params, config = {custom:{auth:true}}) => http.post('agent/Order/order_listagent', params, config)
export const api_agent_roborder = (params, config = {custom:{auth:true}}) => http.post('agent/Order/roborder', params, config)

// get请求，获取菜单，注意：get请求的配置等，都在第二个参数中，详见前面解释
export const api_shopList = (data) => http.get('api/mall.Shop/list', data)
export const api_shopInfo = (data) => http.get('api/mall.Shop/info', data)
export const api_brandInfo = (data) => http.get('api/mall.Brand/info', data)
export const api_brandgoodslist = (data) => http.get('api/mall.Shop/shopgoodslist', data)
export const api_shopgoodslist = (data) => http.get('api/mall.Shop/shopgoodslist', data)

